<template>
  <div id="lesson-item" @click="learnLesson">
    <div class="top">
        <img src="https://t7.baidu.com/it/u=3779234486,1094031034&fm=193&f=GIF" alt="">
        <span>已认证</span>
    </div>
    <div class="middle">
        <div class="lesson-name">Python</div>
        <div class="lesson-num">12集</div>
        <div class="author">@壹壹</div>
    </div>
    <div class="bottom">
        <div class="finsh">已结束</div>
        <div class="lesson-person">123人</div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    learnLesson(){
        this.$router.push("/lessonface")
    }
  },
};
</script>

<style scoped>
#lesson-item{
    width: 200px;
    background-color: #fff;
    border-radius: 10px;
    cursor: pointer;
}

#lesson-item:hover{
    box-shadow: 0px 5px 5px #80808020;
}

#lesson-item .top img{
    width: 100%;
    height: 120px;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}

#lesson-item .top{
    position: relative;
}

#lesson-item .top span{
    position: absolute;
    background: linear-gradient(90deg, #FFE7B2 0%, #FFD79F 100%);
    font-size: 12px;
    line-height: 24px;
    padding: 0 6px;
    border-radius: 3px;
    color: black;
    bottom: 0;
    margin: 6px;
}

#lesson-item .middle{
    padding: 10px;
}

#lesson-item .middle .lesson-name{
    font-weight: bold;
    font-size: 18px;
    line-height: 20px;
}

#lesson-item .middle .lesson-num{
    font-size: 16px;
    color: gray;
    line-height: 20px;
}

#lesson-item .middle .author{
    font-size: 12px;
    color: #606060;
    line-height: 35px;
}

#lesson-item .bottom{
    display: flex;
    display: -webkit-flex;
    justify-content: space-between;
    padding: 10px;
    font-size: 14px;
    color: gray;
}
</style>